<?php

class Bootstrap extends Zend_Application_Bootstrap_Bootstrap {

    public function _initApp() {
        
        
        
        $appConfig = new Zend_Config_Ini(
            APPLICATION_PATH.'/configs/application.ini',
            APPLICATION_ENV
        );

        $routerConfig = new Zend_Config_Ini(
            APPLICATION_PATH . '/configs/' . $appConfig->router->config,
            APPLICATION_ENV
        );

        $front = Zend_Controller_Front::getInstance();
        
    //    $front->registerPlugin(new Plugin_CheckLogin());
        
        $router = $front->getRouter();
        $router->addConfig($routerConfig, 'routes');
        
    }
   
}

